<div class="apply-affiliate">
    <div class="{% unless section.settings.full_width %}page-width{% endunless %}">
        {%- if section.settings.heading != blank -%}
        {%- if section.settings.heading != blank -%}
        <div class="affiliate-title">
           <div class="title">
               {{ section.settings.heading | escape }}
            </div> 
        </div>
      {%- endif -%}
       {%- endif -%}
       <div class="ply-list">
        <ul class="ply-affiliate">
            {%- for block in section.blocks -%}
              <li>
                {%- if block.settings.title != blank -%}
                {{ block.settings.title }}
                {%- endif -%}
              </li>
              {%- endfor -%}
            </ul>
       </div>
    </div>
</div>

{% schema %}
{
  "name": "Apply affiliate",
  "tag": "section",
  "class": "spaced-section spaced-section--full-width",
  "settings": [
  {
    "type": "text",
    "id": "heading",
    "default": "Talk about your brand",
    "label": "Heading"
  },
  {
    "type": "checkbox",
    "id": "full_width",
    "default": false,
    "label": "t:sections.rich-text.settings.full_width.label"
  }
  ],
  "blocks": [
  {
    "type": "step",
    "name": "step",
    "settings": [
      {
        "type": "text",
        "id": "title",
        "label": "Step"
      }
    ]
  }
  ],
  "presets": [
    {
      "name": "Apply affiliate"
    }
  ]
}
{% endschema %}
